package com.qhs.sys.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * Created by xinchao on 2017/3/1 0001.
 */
//@Configuration
public class Redis {

  //  @Value("${spring.redis.database}")
    private int database;
  //  @Value("${spring.redis.host}")
    private String host;
   // @Value("${spring.redis.password}")
    private String password;
  //  @Value("${spring.redis.port}")
    private int port;
   // @Value("${spring.redis.timeout}")
    private int timeout;
   // @Value("${spring.redis.maxIdle}")
    private int maxIdle;
  // @Value("${spring.redis.minIdle}")
    private int minIdle;
   // @Value("${spring.redis.maxActive}")
    private int maxActive;
   // @Value("${spring.redis.maxWait}")
    private int maxWait;


    public int getDatabase() {
        return database;
    }

    public void setDatabase(int database) {
        this.database = database;
    }

    public void setMaxIdle(int maxIdle) {
        this.maxIdle = maxIdle;
    }

    public void setMinIdle(int minIdle) {
        this.minIdle = minIdle;
    }

    public void setMaxActive(int maxActive) {
        this.maxActive = maxActive;
    }

    public void setMaxWait(int maxWait) {
        this.maxWait = maxWait;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getTimeout() {
        return timeout;
    }

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }

}
